package 抽象工厂.impl;

import 抽象工厂.Department;
import 抽象工厂.Factory;
import 抽象工厂.User;

/**
 *
 */
public class Business {

    public static void main(String[] args) {

        Factory factory = new FactoryTwo();

        User user = factory.createUser();
        user.say();
        Department department = factory.createDepartment();
        department.say();

    }

}
